package com.starleague.battletech.jpa.appengine;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

import com.starleague.battletech.AbstractBattletechPoints;

// TODO: Move some of these @Embeddable classes into battletech-server, and get rid of the Gae extension.
@Embeddable
public class BattletechPointsGae
        extends AbstractBattletechPoints
{
    public BattletechPointsGae(int points)
    {
        super(points);
    }

    // public BattletechPointsGae(BattletechPoints points)
    // {
    // super(points);
    // }

    protected BattletechPointsGae()
    {
        //
    }

    @Override
    @Basic(optional = false)
    @Column(nullable = false)
    public int getCurrentPoints()
    {
        return super.getCurrentPoints();
    }

    @Override
    public void setCurrentPoints(int currentPoints)
    {
        super.setCurrentPoints(currentPoints);
    }

    @Override
    @Basic(optional = false)
    @Column(nullable = false)
    public int getMaximumPoints()
    {
        return super.getMaximumPoints();
    }

    @Override
    public void setMaximumPoints(int maximumPoints)
    {
        super.setMaximumPoints(maximumPoints);
    }
}
